home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / comm / net / cslip_sana2.lha / slip / device_protos.h < prev    next >
C/C++ Source or Header  |  1993-06-16  |  4KB  |  91 lines

  1. /*
  2. ** $Source: hog:Other/networking/sana2/src/slip/RCS/device_protos.h,v $
  3. ** $State: Exp $
  4. ** $Revision: 37.2 $
  5. ** $Date: 92/08/23 21:23:07 $
  6. ** $Author: kcd $
  7. **
  8. ** Amiga SANA-II Example SLIP device driver.
  9. **
  10. ** (C) Copyright 1992 Commodore-Amiga, Inc.
  11. **
  12. */
  13.  
  14. /* Prototypes for functions defined in device_funcs.c */
  15.  
  16. ULONG ASM DevOpen(REG(a1) struct IOSana2Req * ios2,
  17.             REG(a6) struct SLIPDevice *SLIPDevice,
  18.                     REG(d0) ULONG s2unit,
  19.                     REG(d1) ULONG s2flags);
  20. BPTR ASM DevClose(REG(a1) struct IOSana2Req * ios2,
  21.             REG(a6) struct SLIPDevice *SLIPDevice);
  22. BPTR ASM DevExpunge(REG(a6) struct SLIPDevice *SLIPDevice);
  23. struct SLIPDevUnit *InitSLIPUnit(ULONG s2unit);
  24. VOID ExpungeUnit(struct SLIPDevUnit *sdu);
  25. BOOL ReadConfig(struct SLIPDevUnit *sdu);
  26. VOID ASM DevBeginIO(REG(a1) struct IOSana2Req * ios2,
  27.             REG(a6) struct SLIPDevice *SLIPDevice);
  28. VOID PerformIO(struct IOSana2Req *ios2);
  29. VOID GetSpecialStats(struct SLIPDevUnit *sdu,
  30.                      struct IOSana2Req *ios2);
  31. VOID GetGlobalStats(struct SLIPDevUnit *sdu,
  32.                     struct IOSana2Req *ios2);
  33. VOID GetTypeStats(struct SLIPDevUnit *sdu,
  34.                   struct IOSana2Req *ios2);
  35. VOID TrackType(struct SLIPDevUnit *sdu,
  36.                struct IOSana2Req *ios2);
  37. VOID UnTrackType(struct SLIPDevUnit *sdu,
  38.                  struct IOSana2Req *ios2);
  39. VOID PacketReceived(struct SLIPDevUnit *sdu,
  40.                     ULONG length);
  41. VOID PacketSent(struct SLIPDevUnit *sdu,
  42.                 ULONG length);
  43. VOID PacketOverrun(struct SLIPDevUnit *sdu);
  44. VOID ReceivedGarbage(struct SLIPDevUnit *sdu);
  45. VOID PacketDropped(struct SLIPDevUnit *sdu);
  46. VOID TermIO(struct IOSana2Req *ios2);
  47. ULONG ASM DevAbortIO(REG(a1) struct IOSana2Req * ios2,
  48.                        REG(a3) struct SLIPDevUnit * sdu,
  49.                REG(a6) struct SLIPDevice *SLIPDevice);
  50. ULONG AbortReq(struct MinList *minlist,
  51.                struct IOSana2Req *ios2);
  52. VOID ConfigInterface(struct SLIPDevUnit *sdu,
  53.                      struct IOSana2Req *ios2);
  54. VOID GetStationAddress(struct SLIPDevUnit *sdu,
  55.                        struct IOSana2Req *ios2);
  56. VOID DeviceQuery(struct SLIPDevUnit *sdu,
  57.                  struct IOSana2Req *ios2);
  58. VOID WritePacket(struct SLIPDevUnit *sdu,
  59.                  struct IOSana2Req *ios2);
  60. VOID SendPacket(struct SLIPDevUnit *sdu,
  61.                 struct IOSana2Req *ios2);
  62. ULONG EncodeSLIP(UBYTE *source,
  63.                  UBYTE *dest,
  64.                  ULONG length);
  65. VOID ReadPacket(struct SLIPDevUnit *sdu,
  66.                 struct IOSana2Req *ios2);
  67. VOID ReadOrphan(struct SLIPDevUnit *sdu,
  68.                 struct IOSana2Req *ios2);
  69. BOOL InitSerial(struct SLIPDevUnit *sdu);
  70. VOID DeinitSerial(struct SLIPDevUnit *sdu);
  71. VOID OnEvent(struct SLIPDevUnit *sdu,
  72.              struct IOSana2Req *ios2);
  73. BOOL OpenSerial(struct SLIPDevUnit *sdu);
  74. VOID MarkTimeOnline(struct SLIPDevUnit *sdu);
  75. VOID CloseSerial(struct SLIPDevUnit *sdu);
  76. VOID Online(struct SLIPDevUnit *sdu,
  77.             struct IOSana2Req *ios2);
  78. VOID Offline(struct SLIPDevUnit *sdu,
  79.              struct IOSana2Req *ios2);
  80. VOID DoEvent(struct SLIPDevUnit *sdu,
  81.              ULONG event);
  82. VOID DoOffline(struct SLIPDevUnit *sdu);
  83. VOID ServiceTxPort(struct SLIPDevUnit *sdu);
  84. VOID DoSerial(struct SLIPDevUnit *sdu,
  85.               struct IOExtSer *ioSer);
  86. VOID GotPacket(struct SLIPDevUnit *sdu,
  87.                ULONG length);
  88. VOID QueueSerRequest(struct SLIPDevUnit *sdu);
  89. VOID ASM DevProcCEntry(VOID);
  90. VOID NewList(struct List *list);
  91.